export const EDIT_ROUTER_PREFIX = "edit@@";
//允许运营人员添加的自定义页面的路由类型
export const CUST_ROUTER = [
    {
        name: "专题活动模板",
        type: "NewThematicActivities"
    },
    {
        name: "积分商城模板",
        type: "IntegralBuy"
    },
    {
        name: "礼品卡模板",
        type: "buyGiftCard"
    },

]
//配置自定义链接时的本地路由（也同步到后台其他模块——弹窗广告、推送）
//value的格式：路由路径path-路由title
export const LOCAL_OTHER_ROUTER = [
    {
        label: "专题活动模板",
        value: "NewThematicActivities-专题活动模板"
    },
    {
        label: "关于我们",
        value: "about-关于我们",
    },
    {
        label: "食材检测报告",
        value: "foodChecked-食材检测报告",
    },
    {
        label: "登录",
        value: "login-登录",
    },
    {
        label: "注册",
        value: "register-注册",
    },
    {
        label: "翻牌抽奖",
        value: "prize_card-翻牌抽奖",
    },
    {
        label: "签到",
        value: "integral-签到",
    },
    {
        label: "首页领取优惠券",
        value: "Coupons-首页领取优惠券",
    },
    {
        label: "购买礼品卡",
        value: "buyGiftCard-购买礼品卡",
    },
    {
        label: "积分商城",
        value: "IntegralBuy-积分商城",
    },
]
/**
 * 定义吸顶效果的TabHeader的几个自定义颜色的默认值
 */
export const TabHeaderColor = {
    tabbgcolor: "#f5f5f5",//导航背景颜色
    tabtextcolor: "#000000",//导航文字颜色
    clicktabbgcolor: "#f5f5f5",//选中的导航item的背景色
    clicktabtextcolor: "#000000",//选中TAB文字颜色
}

/**
 * 不同页面的可拖拽的style组件
 */
export const styleComponents = (pageName) => {
    console.log("styleComponents", pageName)
    let _components = {
        home: {
            "宝贝类": [
                {
                    componentName: "ProductItemNew",
                    title: "十格分类模块"
                },
                {
                    componentName: "FirstClassifyNew",
                    title: "楼层分类模块"
                },
                {
                    componentName: "GuessYouLike",
                    title: "猜你喜欢"
                },
            ],
            "图文类": [
                {
                    componentName: "HomeCarousel",
                    title: "广告轮播图"
                },
                {
                    componentName: "FeaturedGoodsNew",
                    title: "五格图片模块"
                }
            ],
            "营销类": [
                {
                    componentName: "NewZone",
                    title: "横幅图片模块"
                },
            ],
            "其他类": [
                {
                    componentName: "UserCard",
                    title: "扫一扫会员卡"
                },
                {
                    componentName: "HomeNotice",
                    title: "公告"
                },
            ]
        },
        NewThematicActivities: {
            "宝贝类": [
                {
                    componentName: "GuessYouLike",
                    title: "猜你喜欢"
                },
                {
                    componentName: "activitiesOnePro",
                    title: "单列下滑商品"
                },
                {
                    componentName: "activitiesTwoPro",
                    title: "双列下滑商品"
                },
                {
                    componentName: "activitiesNinePro",
                    title: "三列下滑商品"
                },
            ],
            "图文类": [
                {
                    componentName: "HomeCarousel",
                    title: "广告轮播图"
                },
                {
                    componentName: "NewZone",
                    title: "横幅图片模块"
                },
                {
                    componentName: "activitiesbanner",
                    title: "下滑图片模块"
                },
                {
                    componentName: "activitiesSlidePic",
                    title: "三列横滑图片组件"
                },
            ],
            "营销类": [
                {
                    componentName: "ActivitieCoupons",
                    title: "固定优惠券"
                },
                {
                    componentName: "ActivitieCoupons2",
                    title: "自定义图片优惠券"
                },
            ],
            "其他类": [
                {
                    componentName: "TabHead",
                    title: "Tab导航组件"
                }
            ]
        },
        buyGiftCard: {
            "图文类": [
                {
                    componentName: "GiftBuyCarousel",
                    title: "礼品卡轮播图"
                }
            ],
        },
        IntegralBuy: {
            "图文类": [
                {
                    componentName: "PointMallCarousel",
                    title: "积分商城轮播图"
                }
            ],
        },
        default: {
        }
    }
    return _components[pageName] || _components.NewThematicActivities
}